Android2.2 vold analysis-2---20110105
Analysis of Netlink event communication mechanism in vold
The netlinkhandler member function start () calls socketlistener: startlisten ()
Calling NL-> Start () in the system/vold/Main. cpp main () function is to call the int netlinkmanager: Start () function. The main functions of this function are as follows:(1). Create net
I. Analysis of process initiation and configuration files vold stands for volume daemon. In fact, it is responsible for completing the system's CDROM, USB large capacity storage, mmccard and other extended storage mounting tasks to automatically complete the daemon process. It supports hot swapping of these storage peripherals. There is a big difference between the vold System on Android and the GNU/Linux s
storage device, after reading the source code, this function does not do anything. it is estimated where soy sauce is going. ** Source code: int volumemanager: Start () {return 0 ;} **************************************** **************************************** **/If (Vm-> Start ()) {sloge ("unable to start volumemanager (% s)", strerror (errno); exit (1 );} /*************************************** **************************************** * *** the process_config function is used to parse/etc
From android2.2 (froyo), Android has changed vold code.C Language, Changed to C ++, and fully inherits the framework, netlinklistener, and other general classes. Although the structure of the submitted vold is large, it can be inherited and scalable, but it also increasesCodeComplexity.
This article is a good introduction to vold Analysis in Android.
Bu
Address: http://www.chineselinuxuniversity.net/freesky/viewthread.php? Tid = 41
The full name of vold is volume daemon. In fact, it is responsible for completing the system's CDROM, USB large capacity storage, mmccard and other extended storage mounting tasks to automatically complete the daemon process. It supports hot swapping of these storage peripherals. Here is an introduction to GNU/Linux vold [http:
The whole vold mechanism should be the system layer, and the interaction with the framwork layer is mentioned in android--4.2 Vold Mount Management _commandlistener (ii), which is communicated through a "vold" socket, Here is an analysis of the framework in charge of communicating with Vold:mountserviceWriting is not easy, reproduced please specify the source: ht
This time in order to make an MMC block as SDcard built-in, learning the next Android Vold disk Mount module, record (Android 4.2.2).Writing is not easy, reproduced please specify the source: http://blog.csdn.net/jscese/article/details/38068441One: Vold compilation and start-upVold source location in the Android root directory/system/vold file, first look at the
Android Storage System (i)
Looking for a long time vold storage module knowledge, also merely for a period of time the Android source code, found that the Android storage system involved in the function call, and kernel between the top of the socket transmission is really a headache, in addition to the principle of organizing the entire architecture, Also have to repeatedly look at the source code, really depressed.depressed, or intend
The Development Board has two MMC interfaces: one is mounted to the SD card and the other is mounted to the sdio interface. When Android is started at the same time, vold crashes and cannot be started.The error code is as follows:# LogcatI/vold (1930): Android volume daemon version 2.0E/(1941): Listen at 0.0.0.0: 22501I/vold (1930): New MMC card 'sa02g' (Serial 2
Storage System of Android-Vold and MountService analysis (I), voldmountservice
Android storage system (1)
After reading the knowledge of the Vold storage module for a long time, I also got rid of the Android source code for a period of time and found the function calls involved in the Android storage system, and the Socket transmission between the Kernel and the upper layer is really a headache. In
In the previous blog introduced a general structure android--4.2 Vold Mount Management _ main Building (a), according to the code sequence structure to analyze sequentially, here to see what commandlistener this class did.Writing is not easy, reproduced please specify the source: http://blog.csdn.net/jscese/article/details/38434263One: Commandlistener constructionBuild an instance in the main function of/system/vo
1. Overall Architecture
2. Process Overview
2.1 enable vold
2.2 boot uevent
2.3 handle events
As a local service of Android, the vold-volume daemon is responsible for processing events such as storage devices such as SD and USB.
1. Overall Architecture
The vold service is centrally controlled by volumemanager. It distributes specific tasks to netlinkmanager, co
Release date:Updated on:
Affected Systems:Open Handset Alliance Android Open Handset Alliance Android 3.0Description:--------------------------------------------------------------------------------Cve id: CVE-2011-1823
Android is a project launched by Google through Open Handset Alliance. It is used to provide a complete set of software for mobile devices, including operating systems and middleware.
Android 3.0 and 2. the vold volume manager backgroun
START () function:
/*************************************** **************************************** * *** File: system/vold/netlinkmanager. CPP ** the initialization of some of the following sockets is similar to that of TCP/UDP on the Linux application layer. **************************************** **************************************** **/INT netlinkmanager:: Start () {struct sockaddr_nl nladdr; int SZ = 64*1024; memset ( nladdr, 0, sizeof (nla
Fstab automatic mounting file, fstab mount file
Stat view Timestamp
Tip: the local system is usually mounted in fstab, and the two columns at the end do not use 1, 0 0.Fstab file description:Column 1: the device to be mounted (such as/dev/sda) or remote file system (such as NFS)The format of this column is as follows
Storage System of Android-Vold and MountService analysis (3), voldmountservice
Android storage system (III)
Review:The previous post analyzed the main () function of Vold and the function call process of NetlinkManager. As of the creation of NetlinkHandler and start () call, this post continues to analyze the source code.
1. process block-type uevent
The main () function creates the Command
Configure start mounting: fstab file details, and fstab file mounting detailsFstab file Introduction
The fstab file contains information about the storage devices on your computer and their file systems. It determines how a hard disk (partition) is used or integrated into the entire system file. Specifically, fstab can
Introduction to fstab, mounting fstab
This file describes information about various file systems in the system. Generally, an application only reads this file and does not write the file. Maintenance is the work of the system administrator.
[Root @ localhost mnt] # cat/etc/fstab # Created by anaconda on Fri Feb 9 09:57:25 2018 # Accessible filesystems, by referen
Http://blog.mcuol.com/User/xiaoxiaopig/Article/21147_1.htm
Many people often modify the/etc/fstab file, but many of them are not clear about the meaning of the file, as long as they follow a certain pattern, you can easily add a row of mounting information without fully understanding the principles. Next let's take a look at what we don't know./Etc/fstab is a file used to store static information of the fil
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.